package com.lt.bcra.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 用户信息登录注册表
 * </p>
 *
 * @author LuoTian
 * @since 2022-05-23
 */
@Data
@NoArgsConstructor//无参构造，表格导出使用
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "BcraPersonalInfo对象", description = "用户信息登录注册表")
public class BcraPersonalInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "微信openId")
    private String openId;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "性别")
    private String gender;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "微信")
    private String wechat;

    @ApiModelProperty(value = "QQ")
    private String qq;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "创建日期")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")// 表示接收时间类型
    @TableField(fill= FieldFill.INSERT)//创建时候自动填充时间
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改日期")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")// 表示接收时间类型
    @TableField(fill= FieldFill.INSERT_UPDATE)//创建和修改时候自动填充时间
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "角色")
    private String role;

    @ApiModelProperty(value = "状态")
    @TableField(fill= FieldFill.INSERT)//创建时候自动填充激活状态
    private String status;

    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "is_deleted",fill= FieldFill.INSERT)//创建时候自动填充逻辑删除标识
    @TableLogic
    private Boolean deleted;

}
